﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BlockMe.Infrastructure;
using BlockMe.Repository.MySQL;

namespace BlockMe.Web.MVC
{
    public class BlogHelper
    {
        private static BlogRepository repository = new BlogRepository();

        public static string this[string index]
        {
            get {
                return repository[index];
            }
            set {
                repository[index] = value;
            }
        }

        public static void AddSetting(string key, string value)
        {
            repository.AddSetting(key, value);
        }

        public static void RemoveSetting(string key)
        {
            repository.Remove(key);
        }
    }
}